-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add directional light to scene_system #762
Conversation
Use hard-coded light parameters copied from visualizer0. The visualizer0 render_widget will need to be updated in order to parse this portion of the scene message.
also, this may address #204 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -39,6 +41,15 @@ class SceneSystem : public drake::systems::LeafSystem<double> { | |||
|
|||
int get_updated_pose_models_input_port_index() const { return updated_pose_models_input_port_index_; } | |||
|
|||
// This is the color used by the directional light added to each scene. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you make these three variables static
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in 247ad17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Use hard-coded light parameters copied from visualizer0. The visualizer0 render_widget will need to be updated in order to parse this portion of the scene message.
This doesn't fix the textures, but it at least makes the shape of the vehicles more visible, so the visualizer is much more functional. I will post a screenshot.